package us.mooresr.webtroopmanager.client.ui;

import java.util.List;

import us.mooresr.webtroopmanager.shared.EventSummary;
import us.mooresr.webtroopmanager.shared.Privilege;


import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;

public interface EventListView extends IsWidget {
	void setData(List<EventSummary> data);
	void setPresenter(Presenter presenter);
	void removeEvent(Long id);
	void addEvent(EventSummary e);
	void setStatus(String status);

	public interface Presenter {
		void goTo(Place place);
		void deleteEvent(EventSummary event);
		Boolean hasPermission(Privilege priv);
		Boolean isAllowed(Privilege priv, Long object);
		void showPastEventsChanged(Boolean newValue);
	}
}
